// pages/collection/collection.js

Page({
  data: {
    collection: [{
      name: "config",
      main: true
    }, {
      name: "mynote",
      main: true
    }, {
      name: "visitor",
      main: true
    }, {
      name: "mybook"
    }, {
      name: "weather"
    }, {
      name: "mysaying"
    }, {
      name: "picture"
    }, {
      name: "translate"
    }],
    isShowConfirm: false
  },
  onLoad: function (options) {

  },
  //提示文本点击监听
  hintClick(e) {
    wx.navigateTo({
      url: 'templateTest/templateTest'
    })
  },
  //显示弹窗
  showDialog() {
    this.setData({
      isShowConfirm: true
    })
  },
  //输入监听
  inputListener: function (e) {
    console.log("inputListener--", e.detail)
  },
  //按钮点击监听
  radioCheck: function (e) {
    console.log("radioCheck--", e)
    var btnClick = e.detail
    var that = this
    that.setData({
      isShowConfirm: false,
    })
  }
})